using System;
using System.Collections.Generic;
using System.Text;

namespace nodetest
{
    class node //: IEquatable<node>
    {
        public int name;
        public int tree;
        public node parent; //reference type
        //public bool Equals(node other)
        //{
         //   return name.Equals(other.name);
        //} 
        public static node operator * (node n1,node n2)
        {
            node temp = n1;
            temp.name = n2.name;
            temp.parent = n2.parent;
            temp.tree = n2.tree;
            return temp;

        }

    }

    class Program
    {
        static void Main(string[] args)
        {
            node n1 = new node();
            n1.name = 200;
            n1.parent = new node();
            n1.tree = 2;
            n1.parent.name = 3000;
            node n3 = n1;
            node n2 = new node();
            n2 = n2 * n3;
            if (n2.Equals( n1))
            {
                node a = new node();
            }


        }
    }
}
